package com.frame.domain;

import java.io.Serializable;
import java.util.Date;
import java.util.UUID;

import com.frame.domain.Department.Columns;
import com.mini.core.WeakEntity;
import com.mini.core.annotation.Column;
import com.mini.core.annotation.Entity;
import com.mini.core.utils.EnumClazz.StrategyType;

/**
 * @author sxjun
 * @version 2016-3-17
 */
@Entity(table="MENU_PERMISSION",id="ID",strategy=StrategyType.UUID)
public class MenuPermission extends WeakEntity implements Serializable {
	private static final long serialVersionUID = 1L;

    /**
	 * Columns
	 */
	public static final class Columns {
		public static final String id = "ID";
		public static final String menuid = "MENUID";
		public static final String permissionid = "PERMISSIONID";
		public static final String createtime = "CREATETIME";
	}
	
	/**
	 * Primary key
	 * @return
	 */
	@Column("id")
    public String getId() {
    	return super.getStr(Columns.id);
	}

    /**
	 * Primary key
	 * @param id
	 * @return
	 */
	public MenuPermission setId(String id) {
		super.set(Columns.id, id);
		return this;
	}

	/**
	 * Get the createtime
	 * @return
	 */
	@Column("createtime")
	public Date getCreatetime() {
		return super.getDate(Columns.createtime);
	}
	
	/**
	 * set the createtime
	 * @param createtime
	 * @return
	 */
	public MenuPermission setCreatetime(Date createtime) {
		super.set(Columns.createtime, createtime);
		return this;
	}
	
	
	/**
	 * get menu id
	 * @return
	 */
	@Column("menuid")
    public String getMenuid() {
    	return super.getStr(Columns.menuid);
	}

    /**
	 * set menu id
	 * @param id
	 * @return
	 */
	public MenuPermission setMenuid(String menuid) {
		super.set(Columns.menuid, menuid);
		return this;
	}

	/**
	 * get permission id
	 * @return
	 */
	@Column("roleid")
    public String getPermissionid() {
    	return super.getStr(Columns.permissionid);
	}

    /**
	 * set permission id
	 * @param id
	 * @return
	 */
	public MenuPermission setPermissionid(String permissionid) {
		super.set(Columns.permissionid, permissionid);
		return this;
	}
}
